# -*- coding: UTF-8 -*-
import random
import hashlib

a = random.randint(0, 99)
str = 'abcde'
list = list(str)
print("list:%s" % list)
list.insert(3, '%s' %a)
str_convert = ''.join(list)
print(str_convert)
list.pop(3)
print("删除0之后%s" %list)
# x1 = len(str)
# print(x1)
str_convert = ''.join(list)
print(str_convert)
# def eny(words):
#   words = str(words)
#   hl1 = hashlib.md5()
#   hl1.update(words.encode("utf-8"))
#   print('MD5加密前为 ：' + words)
#   print('MD5加密后为 ：' + hl1.hexdigest())
#
#
#
#
# eny(122)
# b = "abcdefadd"
# print(len(b))
# b = list(b)
# a = random.randint(10, 100)
# print("i:%s" % a)
# b.insert(0, a)
# print(b)
# a = [1, 2, 3, 4, ]
# print(a[0:2])
# b = str.join(a)
# print(b)
# # 待加密信息
# str = '123456'
# # 创建md5对象
# hl = hashlib.md5()
# # 更新hash对象的值，如果不使用update方法也可以直接md5构造函数内填写
# # md5_obj=hashlib.md5("123456".encode("utf-8")) 效果一样
# hl.update(str.encode("utf-8"))
# print('MD5加密前为 ：' + str)
# print('MD5加密后为 ：' + hl.hexdigest())
